Software Development
Building Jar Files for Java Libraries
Java Archive (JAR): Building Java Archives
Java Archive (JAR): Packaging Java Apps Using Maven

Java Archive (JAR): Building Java Archives

Course Number:
it_jpbjjldj_01_enus
Lesson Objectives

Java Archive (JAR): Building Java Archives

  • discover the key concepts covered in this course
  • use an integrated development environment (IDE) to create the main class for a Java project
  • create and execute a basic Java archive using a manifest file
  • extract and recognize the contents of a Java archive (JAR)
  • outline the automatic generation of manifests and the fields contained in them
  • edit and specify the data stored inside the manifest file of a JAR
  • build a Java application with a dependency on an external library
  • reference and use external dependencies in your JAR
  • construct a JAR file with multiple main classes and run each of them
  • create JAR files with multiple packages to store related code
  • use non-executable JAR files as libraries in other projects
  • summarize the key concepts covered in this course

Overview/Description
Java Archives (JARs) wrap a Java application into a single archive file for deployment, distribution, and execution. Use this course to acquaint yourself with building Java archives or JAR files using the JAR utility, run from the command line. Over the length of the course, you'll outline how a simple Java project packaged into a JAR file can be executed directly, different attributes of a JAR manifest can affect the use of a JAR file, and a project with external dependencies can be packaged into an executable JAR. Upon completion of this course, you'll be able to build different Java archives: JAR with multiple main classes, JAR containing several packages, and JAR that is not directly executable by itself but usable as a dependency in other projects.

Target

Prerequisites: none

Java Archive (JAR): Packaging Java Apps Using Maven

Course Number:
it_jpbjjldj_02_enus
Lesson Objectives

Java Archive (JAR): Packaging Java Apps Using Maven

  • discover the key concepts covered in this course
  • install and configure Maven to create Java archives
  • create a Maven project which can then be packaged into a JAR file
  • create a custom pom.xml file and build an executable JAR with Maven
  • execute and view the contents of a Java archive built with Maven
  • create and run a Java archive that has external dependencies
  • recognize how dependencies are referenced from a POM file
  • create fat or uber JARs that package external dependencies in the archive using the Maven assembly plugin
  • describe how dependencies are stored in fat or uber JARs
  • build and execute a fat or uber JAR file created with the Maven Shade plugin
  • summarize the key concepts covered in this course

Overview/Description
Based on the concept of a project object model (POM), Apache Maven is a project management software as well as build automation and comprehension tool. Explore the flexibility offered by Maven in the creation of Java archives or JAR files using this course. Try your hand at using Apache Maven to build a Java application and package it into an executable JAR file, create a JAR file for an app with external dependencies and ways to execute it, and package your Java app along with all of its external dependencies into a single package known as a fat or uber JAR. Having finished this course, you'll have the skills and knowledge to build lean as well as uber JAR files using Apache Maven.

Target

Prerequisites: none

Close Chat Live